package com.cn.wanxi;

import com.cn.wanxi.entity.MailEntity;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
public class CanyinSpringbootApplication {

    public static void main(String[] args) {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run(CanyinSpringbootApplication.class, args);
    }

    @Bean
    public MailEntity setMailEntity() {
        return new MailEntity();
    }
}
